<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
        <title>第一个网页</title>
    </head>
    <body>
     <style type="text/css">
     *{
         font-size: 16px;
     }
    .layout{
        border: 1px solid brown;
        width: 1080px;
        margin: 0 auto;
    }
    .header{
        background-color:cadetblue;
    }
    .main{
        background-color:darkkhaki;
        padding: 0;
        margin: 0;
        border: 0;
        width: 1080px;
    }
    .footer{
        background-color: #666; 
    }
    .layout>.main>.left{
        background-color:darkslateblue;
        color: #ffffff;
    }
    .workspace{
       border: 1px solid orange;
        color: #ffffff;
        width: 70%;
        float: left; 
    }
    #ws{
        border-width: 2px;
    }
    .div{
        color: powderblue;
    }
    .layout div{
        color: silver;
    }
    .right{
        background-color: firebrick;
        color: #ffffff;  
    }
    .container{
        padding: 0;
        margin: 0;
        border: 0;
        box-sizing: border-box;
        display: table;
        width: 100%;
    }
    .container>.col-1{
        padding: 0;
        margin: 0;
        border: 0;
        box-sizing: border-box;
        display: table-cell;
        width: 25%;
    }
    .container>.col-2{
        padding: 0;
        margin: 0;
        border: 0;
        box-sizing: border-box;
        display: table-cell;
        width: 50%;
    }
    .container>.col-3{
        padding: 0;
        margin: 0;
        border: 0;
        box-sizing: border-box;
        display: table-cell;
        width: 75%;
    }
    .container>.col-4{
        padding: 0;
        margin: 0;
        border: 0;
        box-sizing: border-box;
        display: table-cell;
        width: 100%;
    }
     </style>  
     <div class="layout">
         <div class="header container">
            <h1 class="col-3">我的博客</h1>
            <div class="col-1">fan,退出</div>
         </div>
         <div class="main container" >
            <div class="left col-1">左边部分</div>
            <div class="workspace col-2" id="ws">
                <div class="container article">
                    <div class="col-1 article"></div>
                </div>
               工作部分
            </div>
            <div class="right col-1">右边部分</div>
        </div>
        <div class="footer">
            下面部分
        </div>
     </div> 
    </body>
</html>


//1.浮动：可以飘在右边，会被挤下去
//2.div居中 margin:0 auto;
//3.盒模型的width占据的大小
//4.层叠
//5.继承
//6.选择器 子元素与下级元素 直接下级与全部子集
//7.display:table-*.
//8.grid 栅格系统网络



